/* GSOutSubDAO.java
 *
 * Project/Product: GWBS2009
 *
 * Modify Information:
 * =============================================================================
 *   Author	Date       Description
 *   ----------	---------- ---------------------------------------------------
 *   apep	2010-1-26	First release
 *
 * Licensed Materials - Property of APEP
 * =============================================================================
 *    (C) COPYRIGHT Shanghai Auto Mart E-Procurement Co., Ltd. 2007 - 2010
 *    All Rights Reserved.
 *
 *    This software is the confidential and proprietary information of
 *    Shanghai Auto Mart E-Procurement Co., Ltd. ("Confidential Information").
 *    You shall not disclose such Confidential Information and shall use it only
 *    in accordance with the terms of the license agreement you entered into 
 *    with Shanghai Auto Mart E-Procurement Co., Ltd.
 *
 * Noties:
 * =============================================================================
 * 
 */

package com.hitrust.gs.dao;

import java.util.List;

import com.hitrust.gs.bean.GSOutSubBean;
import com.hitrust.gs.lib.GSLogWriter;
import com.hitrust.gs.lib.db.GSBaseDAO;
import com.hitrust.gs.util.exception.GSException;

public class GSOutSubDAO extends GSBaseDAO{
    
    public List selectOutSubByBillCode(String outBillCode)throws GSException{
        String sql="select * from T_OUT_SUB where OUT_BILL_CODE=?";
        List list=null;
        Object[] obj={outBillCode};
        try {
            list=this.executeQuery(new GSOutSubBean(), sql, obj);
        } catch (Exception e) {
            GSLogWriter.error(this,e.toString());
            throw new GSException(GSException.E10040, GSException.E10040_MSG);
        }
        return list;
    }

}
